package tools;

import javax.swing.UIManager;

public class Skin {

	private static String OS = System.getProperty("os.name").toLowerCase(); // check for os

	public static boolean isWindows() {
		return (OS.indexOf("win") >= 0);
	}

	public static boolean isMac() {
		return (OS.indexOf("mac") >= 0);
	}

	public Skin() {

		if (isWindows()) {
			try
			{
				UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
			}

			catch (Exception e)
			{
				System.out.println("Unable to load Windows look and feel...");
			}

		} else if (isMac()) {
			System.setProperty("apple.laf.useScreenMenuBar", "true");
			System.setProperty("com.apple.mrj.application.apple.menu.about.name", "ProjectM");
		} else {
			System.out.println("Your OS is not support!!");
		}
	}
}